package a1;

public class Car{
	private int xCor = 0;
	private int yCor = 0;
	private char direction;

	/** car constructor*/

	public Car (int xCor, int yCor, char direction){
	this.xCor = xCor;
	this.yCor = yCor;
	this.direction = direction;
	}

        /** set the x coordinate of the cars*/
        public void setXcor(int xCord){
            xCor = xCord;
        }
        /** set the y coordinate of the cars*/
        public void setYcor (int yCord){
            yCor = yCord;
        }      
        /** get the x coordinate of the cars*/
	public int getXcor(){
	return xCor;
	}
         /** get the x coordinate of the cars*/
	public int getyCor(){
	return yCor;
	}
         /** get the direction of the cars*/
	public char getDirection(){
	return direction;
	}


}